/*
 * File:   Utils.h
 * Author: ranjeet
 *
 *this file declared the function that take number different formats like int
 *float, char etc. and return them in std::string
 *
 * Created on January 1, 2009, 2:48 PM
 */

#ifndef _UTILS_H
#define	_UTILS_H

#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

#include "Debug.h"

///Takes integer and return as std::string
std::string formatInt(int val, unsigned int len);

///Takes hexinteger and return as std::string
std::string formatIntHex(int val, unsigned int len);

///Takes unsigned integer and return as std::string
std::string formatUInt(unsigned int val, unsigned int len);

///Takes float and return as std::string
std::string formatFloat(double val, int prevdec, int precdec, unsigned int len);

unsigned long int get_elapsed_time();

#endif	/* _UTILS_H */

